package com.physics.mps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.physics.mps.entity.dto.StatusCount;
import com.physics.mps.entity.dto.SubTaskEntity;
import com.physics.mps.entity.vo.SubTaskQueryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mcsoft
 * @since 2023-09-11
 */
public interface SubTaskMapper extends BaseMapper<SubTaskEntity> {



    /**
     * 分页查询子任务
     *
     * @param page 分页参数
     * @param vo   查询参数
     * @return
     */
    Page<SubTaskEntity> selectTask(Page<SubTaskEntity> page, @Param("vo") SubTaskQueryVo vo);

    /**
     * getNumber
     *
     * @return
     * @param string
     */
    List<StatusCount> getNumber(String string);
}
